﻿using Furion.FriendlyException;
using Utils;

namespace Teambuy.Services
{
    /// <summary>
    /// 通用
    /// </summary>
    [ApiDescriptionSettings("通用服务")]
    public class CommonService : BaseServices
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sms"></param>
        public CommonService()
        {
        }

        /// <summary>
        /// 发送手机验证码
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        public async Task<object> SendPhoneCode(string phone)
        {
            await PhoneCode.Send(phone);
            
            return Ok("发送成功");
        }
    }
}
